package com.github.pig.admin.mapper.sys.roleUser;


import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.github.pig.admin.model.entity.SysUserRole;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
  * 用户角色表 Mapper 接口
 * </p>
 *
 * @author lengleng
 * @since 2017-10-29
 */
public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {

    Boolean deleteByUserIds(@Param("userId") Integer userId);
    void updateSysUserRole(@Param("userId") int userId,@Param("id") int id, @Param("roleId")Integer roleId);
}